package org.gdpu.service;

import org.gdpu.base.DAO;
import org.gdpu.model.BloodBank;
import org.gdpu.model.BloodOrder;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-11-8
 * Time: 下午3:16
 * To change this template use File | Settings | File Templates.
 */
public interface BloodBankService extends DAO{

    /**
     *     快过期的血液
     * @return
     */
    public List<BloodBank> overdue();

    /**
     * 审核血液
     * @param bloodBankIds 血液id
     * @param state 状态
     */
    public void review(int[] bloodBankIds,int state);

    /**
     * 血液报废
     * @param bloodBankIds 血液id
     * @param messages 报废信息
     */
    public void overdue(int[] bloodBankIds,String[] messages);

    public List<BloodBank> findBloodByState(String state);
}
